package com.pengxun.manager.service.system;

import java.util.List;

import com.pengxun.manager.model.system.Role;
import com.pengxun.manager.model.system.Userinfo;
import com.pengxun.manager.vo.RoleParam;
import com.szeastroc.common.jdbc.page.Page;

public interface RoleService {
	public void insert(Role role);

	public int update(Role role);

	public int delete(Integer id);

	public Page findByPage(RoleParam role);
	
	List<Role> findAll();
	
	void deleteByRoleCode(String roleCode);
	
	Role findByRoleCode(String roleCode);

	List<Role> findByRoleCodes(List<String> roleCodes);
	
	Role selectLastRole();
	
	List<Role> findRoleByCurrentUser(Userinfo userinfo);
}
